package com.threadlocal.pool;

import java.util.concurrent.Executor;
import java.util.concurrent.Executors;

public class ThreadPoolExecutor {

	public static void main(String[] args) {
		Executor exector = Executors.newFixedThreadPool(5);
		for(int i=0;i<200;i++){
			
			
			exector.execute(new A("java"+i));
		}

	}

	static class A implements Runnable {
		private static String name;

		public A(String name) {
			this.name = name;
		}

		public void run() {
			// TODO Auto-generated method stub
			System.out.println("hello," + name+"+"+System.currentTimeMillis());
		}

	}
}
